package org.spring.springboot.tools;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class FileTools {
  
	
	public void writeJsonToJs(String json,String path){
     byte bt[] = new byte[1024];  
     bt = json.getBytes();  
     try {  
         FileOutputStream out = new FileOutputStream(path);  
         try {  
        	 out.write(bt, 0, bt.length);  
        	 out.close();  
             // boolean success=true;  
             // System.out.println("д���ļ��ɹ�");  
         } catch (IOException e) {  
             // TODO Auto-generated catch block  
             e.printStackTrace();  
         }  
     } catch (FileNotFoundException e) {  
         // TODO Auto-generated catch block  
         e.printStackTrace();  
     }  
	}
	
}